package com.cqhilink.iot.jobstandardmanagement.services.outerservice.impl;

import com.cqhilink.iot.jobstandardmanagement.facade.model.EntityType;
import com.cqhilink.iot.jobstandardmanagement.facade.model.Ztree;
import com.cqhilink.iot.jobstandardmanagement.facade.service.OutEntityTypeService;
import com.cqhilink.iot.jobstandardmanagement.facade.service.entitytype.JsmEntityTypeService;
import com.cqhilink.iot.jobstandardmanagement.facade.service.servicenode.JsmServiceNodeService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by zmling on 2017/1/16.
 */
public class OutEntityTypeServiceImpl implements OutEntityTypeService {
    @Autowired
    private JsmEntityTypeService entityTypeService;
    @Autowired
    private JsmServiceNodeService serviceNodeService;

    @Override
    public List<Ztree> listTree(EntityType entityType) {
        return entityTypeService.listTree(entityType);
    }

    @Override
    public List<Ztree> getInitZtree(String keyword) {
          return serviceNodeService.getInitZtree(keyword);
    }

}
